export default class BaseRepository {
  constructor (model) {
    this.model = model
  }

  async addOne (doc) {
    const newDoc = new this.model(doc)
    return await newDoc.save()
  }

  async getList () {
    return await this.model.find()
  }

}
